package com.acwer.oa.web.api.controller;

import org.springframework.web.bind.annotation.RestController;

import com.acwer.domain.sys.RpnMsg;

@RestController
public class BaseController {
	public static int SUCCESS_CODE=20000;
	public static RpnMsg SUCCESS(){
		
		return new RpnMsg(){
			{
				setCode(SUCCESS_CODE);
				setMsg("成功");
			}
		};
	}
	
	public static RpnMsg FAIL(){
		return new RpnMsg(){
			{
				setCode(1);
				setMsg("失败");
			}
		};
	}
}
